timeout=500;var closetimer=0,ddmenuitem=0;function mopen(a){mcancelclose();if(ddmenuitem)ddmenuitem.style.visibility="hidden";ddmenuitem=document.getElementById(a);ddmenuitem.style.visibility="visible"}function menuclose(){if(ddmenuitem)ddmenuitem.style.visibility="hidden"}function mclose(){closetimer=window.setTimeout(menuclose,timeout)}function mcancelclose(){if(closetimer){window.clearTimeout(closetimer);closetimer=null}}document.onclick=menuclose